<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/finance/djlc/cw_djlc_analyze_newnumber.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/finance/djlc/cw_djlc_analyze_newnumber.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'cw_djlc_djzb_id',
                footer: "Foots",
                cnName: '定价流程新增物料分析',
                name: 'djlc/cw_djlc_analyze_newnumber',
                url: "/cw_djlc_analyze_newnumber/",
                sortName: "cw_djlc_code"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'cw_djlc_code',title:'定价流程编号',type:'string',width:220,hidden:true,align:'left'},
                       {field:'newbomnumber',title:'新增物料编号',type:'string',width:120,hidden:true,align:'left'},
                       {field:'newcomponentnum',title:'子件物料号',type:'string',width:120,align:'left',sort:true},
                       {field:'newdescription',title:'物料描述',type:'string',width:220,align:'left'},
                       {field:'num',title:'数量',type:'decimal',width:110,hidden:true,align:'left'},
                       {field:'unitprice',title:'单价',type:'decimal',width:110,hidden:true,align:'left'},
                       {field:'price',title:'总价',type:'decimal',width:80,align:'left'},
                       {field:'newgroupnumname',title:'分组',type:'string',width:120,hidden:true,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
